#include "Board.h"

// BreakingBoard 构造函数
BreakingBoard::BreakingBoard(float x, float y, const GameConfig& gameConfig) 
    : Board(x, y, gameConfig), isCracked(false), crackTimer(0.0f) {
    type = "BreakingBoard";
    color = RED; // 可破坏板子使用红色
}

// 实现虚函数
void BreakingBoard::Update() {
    Board::Update();
}

void BreakingBoard::Draw() {
    Board::Draw();
}

void BreakingBoard::OnPlayerLand() {
    Board::OnPlayerLand();
}

void BreakingBoard::Reset(float x, float y) {
    Board::Reset(x, y);
    isCracked = false;
    crackTimer = 0.0f;
}